How do I prevent php files from being cached in WordPress while developing/debugging my WP theme?

Asked by:
strollerhikes / 8 Points
2012-11-25 10:54 pm EST
I am tweaking a template in my WordPress theme while my site is still in the development stage. When I upload (ftp) the modified file to the WP site on my account, it is not being shown/used by the actual web server. Is it possible to restart the web server manually or somehow require the web server to grab the most recent version of a PHP file upon update, rather than the cached version of a file? I know how to handle this within WP for JS and css files, but not the PHP files.

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by User


12,011 Points
2012-11-26 11:34 am EST
Hello strollerhikes,

Thank you for your question. The server does not cache anything by default, so if your site is caching I recommend checking if there are caching plugins/addons installed such as wp-supercache.

If there is not, then check your browser cache settings, or clear your browser cache.

It is not required to restart the web server, and this would not be possible in a shared environment.

If you have any further questions, feel free to post them below.
Thank you,


To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.