• I have just made some changes to pdb-record-custom-villainfo.php to reflect new images embedded in a form.

    The updated form has been ftp uploaded to wp-content/plugins/participants-database/templates

    Despite clearing the browser cache multiple times the template is still trying to show the old images that do not exist anymore.

    I am not using any caching plug-ins in my wordpress site.

    I have just updated the pdb plugin which completely wiped out my five custom templates and have reloaded all five templates.

    I still cannot see the images and Google Inspect shows the old img source.

    If I view the template file on the server it is correctly showing the new revised template with the correct img source info.

    Ciao, Debbie

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author xnau webdesign

    (@xnau)

    OK, the first thing I want to mention is you should not be placing your custom templates in that location, they will be deleted when the plugin is updated. The usual location for your templates is in your theme folder in a folder named “templates” as explained here.

    As to the caching, an issue like this it usually a “page cache” and since you’re not using any caching plugins, this will be something that is running on your web server.

    If you’re on a service like GoDaddy, there is usually a caching control link in the admin bar (at the top when you’re logged in as an admin) where you can clear the cache they have set up on their servers.

    In most other cases you will need to contact your web host to explain the problem and ask how to clear the cache.

    Thread Starter Technically Blonde

    (@technically-blonde)

    Thanks for both your comments. I have contacted my web host and am waiting to hear from them. I will move the templates as well.

    Ciao, Debbie

    Thread Starter Technically Blonde

    (@technically-blonde)

    Somehow I have resolved this but I do not why it happened in the first place. I moved the templates to the correct directory as suggested in your article.

    I contacted the web host who has replied

    “That would be up to your or your developer to determine I’m afraid. It would not be server side but the configuration of your site content. It might be the plugin/theme has content or holding on to values in its cache as often they do hold there own cache values.”

    In order to try and force the change I renamed the template from wp-content/themes/Divi/templates/pdb-record-custom_villainfo.php to wp-content/themes/Divi/templates/pdb-record-custom_villainfo-new.php. I left the shortcode on the relevant page calling pdb-record-custom_villainfo.php … which no longer exists on the server. But the page still returns data formatted according to pdb-record-custom_villainfo.php, which does not exist!

    I then deleted the sandbox subdirectory on httpdocs where I orginally redeveloped the site.

    The page then presented the information using your standard template

    I renamed the custom template back to pdb-record-custom-villainfo.php, which is what the shortcode calls and hey presto suddenly all is okay.

    Somehow my top wordpress installation was picking up the template from the sandbox development version. Once the sandbox development version was deleted everything now works fine.

    Plugin Author xnau webdesign

    (@xnau)

    That sounds pretty complicated, but I’m glad to hear you got it working…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Templates caching issue’ is closed to new replies.