Support » Plugin: Pardot » Clear Form Cache – Editor

  • Hi!

    We need a way for Editor user accounts to clear the Pardot cache. Right now it takes a long time before newly created forms show up in the WordPress admin, at worst a couple of hours.

    There’s to many Editors on the site (with to little knowledge) to give them access to the Pardot WP-admin page where they risk to remove the Pardot authentication.

    Is there a way I can call the Pardot clear cache function? In that case I can just add it to the admin top bar or another admin page.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Barry

    (@barryhughes-1)

    Hi @david_sa,

    As an alternative to creating a solution that adds a Pardot-specific admin toolbar item for clearing the cache that non-admins can use, how about adding the following to your site’s wp-config.php file:


    define( 'PARDOT_API_CACHE_TIMEOUT', 30 * MINUTE_IN_SECONDS );

    This would force the cache to clear every 30 minutes – though you could certainly adjust that value to whatever might be a better fit. Would that work for you?

    Hi Barry,

    That’s a great option, thank you!

    Do you have documentation where I can find stuff like this?

    Plugin Author Barry

    (@barryhughes-1)

    Hi David,

    This level of detail isn’t exposed in our FAQ or knowledgebase, I’m afraid, so it would require searching the codebase.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clear Form Cache – Editor’ is closed to new replies.