(a)
Any agency which institutes a judicial action or proceeding to enforce zoning regulations may file a notice of the pendency of the action or proceeding in the county recorder’s office of the county where the property affected by the action or proceeding is situated. The notice shall be filed at the time of the commencement of the action or proceeding, and, upon recordation of such notice as provided in this subdivision, shall have the same effect as a notice recorded pursuant to Section 409 of the Code of Civil Procedure.
The county recorder shall record and index the notice of pendency of action or proceeding in the index of grantors and any other index relative to the property in question.
(b)
Any notice of pendency of action or proceeding filed pursuant to subdivision (a) may, upon motion of a party to the action or proceeding, be vacated upon an appropriate showing of need therefor by an order of a judge of the court in which the action or proceeding is pending. A certified copy of the order of vacation may be recorded in the office of the recorder of the county where the notice of pendency of action is recorded, and upon such recordation the notice of pendency of the action or proceeding shall not constitute constructive notice of any of the matters contained therein nor create any duty of inquiry in any person thereafter dealing with the property described therein. Such an order of vacation shall not be appealable, but the party aggrieved by such order may, within 20 days after service of written notice of the order, or within such additional time not exceeding 20 days as the court may, within the original 20 days, allow, but in no event later than 60 days after entry of the order, petition the proper reviewing court to review such order by writ of mandate. No such order of vacation shall be effective, nor shall it be recorded in the office of any county recorder, until the time within which a petition for writ of mandate may be filed pursuant to this subdivision has expired.