pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.07k stars 265 forks source link

Pods cache clearing / not clearing bug #3118

Open LinzardMac opened 9 years ago

LinzardMac commented 9 years ago

Problem:

After performing a *certain function in Pods the WordPress front end appears to be pulling in the wrong template from the normal WordPress template hierarchy on WordPress archive pages.

My Specific Scenario:

Pods Setup - One ACT created by Pods and multiple CPT's created manually in a plugin file.

After the update all of my CPT archive pages appeared to be using the wrong template from the template hierarchy. Even though template files such as archive-mycpt.php existed in my theme folder, the archive pages for those CPTs were using home.php template file. These CPT archive pages also had nothing to do with Pods Framework created items directly.

Fix:

The solution was to go to Pods -> Settings and click "Clear Pods Cache". This brings everything back to normal and using the proper page templates again.

More Info:

Additional information is needed. If you come across an issue where you are using The Pods Framework and WordPress appears to be using the wrong template file and clearing 'Pods Cache' clears up the issue please record the scenario that triggered this issue and post it here.

*I will test to see if the issue is related to the order in which I updated (Pods Framework first and then WordPress core) and return with the results.

*Some folks have noted that this issue could occur when you rename a Pod. If that has happened as well please post here.

Ramoonus commented 9 years ago

@pglewis happened to me also

LinzardMac commented 8 years ago

I had another incident of this happen to me today!

Scenario:

Pods Setup - One ACT created by Pods and multiple CPT's created manually in a plugin file and one CPT extended with a pods relationship field.

Fix:

sc0ttkclark commented 8 years ago

Wondering if that last issue was a rewrite flush issue or a Pods cache issue

LinzardMac commented 8 years ago

I flushed the rewrite rules manually three times before going to the pods cache