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

Asked by:
strollerhikes / 8 Points
Time:
2012-11-26 6:54 am EST
Category:
Wordpress
Hits:
585
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

0

johnpaulb-whh2
Staff
12,339 Points
2012-11-26 7:34 pm 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,

-John-Paul

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!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com 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.
}