Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
I haven’t received your email.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#17 2010-04-06 18:21:31
- SuperMAG
- Member
- Registered: 2010-04-04
- Posts: 35
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
i sent it, check you junk or bulk place.
Last edited by SuperMAG (2010-04-06 18:22:04)
Offline
#18 2010-04-06 18:35:48
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
- Performance issues (I don’t think that’s such a heavy code you have there)
- It’s a tag trace, it will go away when you’ve put your site in live mode
- First read #1 and #2, then disable the plugin and look at the tag trace, enable it and look at the tag trace, is there a difference?
- Plugin: rah_metas, but you can also build the meta tags with native Txp tags
And nice to see that you’ve discovered Textile, but please don’t overdo it ;)
Last edited by els (2010-04-06 18:37:46)
Offline
#19 2010-04-06 19:46:53
- SuperMAG
- Member
- Registered: 2010-04-04
- Posts: 35
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
1- thanks
2- thanks again
3- well this one i cant find it out, there is no refference to cache at all both enabled or disabled.
4- thanks again haha
Last edited by SuperMAG (2010-04-06 19:49:00)
Offline
#20 2010-04-06 19:55:23
- SuperMAG
- Member
- Registered: 2010-04-04
- Posts: 35
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
wait, there are some stuff in the tag trace, most of them are showing false, does it mean something:
<txp:if_section name="default">
[<txp:if_section name="default">: true]
</txp:if_section>
<txp:site_url />
<txp:if_section name="chat">
[<txp:if_section name="chat">: false]
</txp:if_section>
<txp:if_section name="wrestling-live-streaming">
[<txp:if_section name="wrestling-live-streaming">: false]
</txp:if_section>
<txp:if_section name="football-live-streaming">
[<txp:if_section name="football-live-streaming">: false]
</txp:if_section>
<txp:if_section name="other-sports-live-streaming">
[<txp:if_section name="other-sports-live-streaming">: false]
</txp:if_section>
<txp:if_section name="wrestling-replays">
[<txp:if_section name="wrestling-replays">: false]
</txp:if_section>
<txp:if_section name="wrestling-ppvs">
[<txp:if_section name="wrestling-ppvs">: false]
</txp:if_section>
<txp:if_section name="wrestling-dvds">
[<txp:if_section name="wrestling-dvds">: false]
</txp:if_section>
<txp:if_section name="extras">
[<txp:if_section name="extras">: false]
</txp:if_section>
<txp:if_section name="contact">
[<txp:if_section name="contact">: false]
</txp:if_section>
<txp:if_section name="">
[<txp:if_section name="">: true]
</txp:if_section>
<txp:if_category>
[<txp:if_category>: false]
<txp:if_search>
[<txp:if_search>: false]
</txp:if_search>
Offline
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
Not unless they should be true. You have a lot of “conditional” tags in there (tags that ask “if”). So certain of these tags will return “true” but others will return “false”. In this bit of the code:-
<txp:if_section name="default"> [<txp:if_section name="default">: true] </txp:if_section>
you have asked if we are looking at the default section, the answer is “true”, yes we are looking at the default section. Now if that is the case then any other <txp:if_section> tags asking about other sections will return “false” because we are looking at the default section.
So having “false” values isn’t a problem in itself. It is only a problem if the answer should be “true” which is why we have this facility. If something isn’t working properly for us we can check through the tag trace and maybe find out exactly where the problem is occurring.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#22 2010-04-06 20:50:39
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
No, that doesn’t mean anything, except that you can see that the check for which section you are in is done properly. If one of the conditions is true (if_section name="default") then logically all other conditional tags should return false.
You only need the actual tag trace when things don’t work as expected.
Sorry if I wasn’t clear. What I meant was rather this part (on top of the tag trace):
<!-- Runtime: 0.0307 --> <!-- Query time: 0.004949 --> <!-- Queries: 13 -->
I’m not an expert but these times don’t look wrong to me. I thought enabling and disabling the asy_jpcache plugin would show a difference there, but I may be wrong, I’ve never used the plugin myself.
edit: …late again ;)
Last edited by els (2010-04-06 20:51:13)
Offline
#23 2010-04-06 20:55:57
- SuperMAG
- Member
- Registered: 2010-04-04
- Posts: 35
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
ok thanks both of you. i understood properly.
Offline
#24 2010-04-07 16:43:00
- SuperMAG
- Member
- Registered: 2010-04-04
- Posts: 35
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
Edit: Never mind fixed.
Last edited by SuperMAG (2010-04-07 17:06:02)
Offline
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
I would leave the caching plugin switched off while you’re developing. As far as I understand it, the plugin caches the contents of complete generated pages so that these can be retrieved directly from the server without txp having to parse the code again. That makes absolutely no sense in a development environment where you are constantly playing with settings and where you want txp to parse the page tags each time so you can see the results of changes.
Caching makes sense once the site goes live and is most effective for pages that don’t change very often.
TXP Builders – finely-crafted code, design and txp
Offline
#26 2010-04-08 12:34:37
- SuperMAG
- Member
- Registered: 2010-04-04
- Posts: 35
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
well, thanks i already knew that, but have a doubt that it is not working at all. i mean when ever i do changes to template, forms, style, pages the new content shows. there suppose to be a way to find if it is working or not.
it doesnt even mention stuff in the tag trace.
Offline
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
i mean when ever i do changes to template, forms, style, pages the new content shows.
I’m no expert on the plugin but certainly I would hope that a caching mechanism does not obstruct changed content from showing – that would make updating things a real pain, especially when developing as you would then not be sure of the outcome of changes you make.
well, thanks i already knew that…
Ah, ok. May I then suggest you re-read the plugin notes in detail as well as the linked pages on the technology it uses as they describe how it works. Here’s a relevant excerpt:
After a user requests a page, JPCache will save the result-page in compressed format in the cache-directory. For subsequent requests, JPCache will
- not serve a cached page, if the latest cached file is older than X seconds (default 900)
- send a 304 header it ETag-headers are set
- otherwise send the compressed page if gzip is supported
- or sent the uncompressed page if gzip is not supported
- delete a cached page, if a comment is posted at that URL
asy_jpcache will also automatically clean the cache when
- comments are edited, deleted, moderated (for this and the following activate this plugin)
- articles are edited, posted, deleted
- forms or pages are edited.
asy_jpcache will not cache requests made via POST (like comment previews).
asy_jpcache will not cache file-downloads.
It also includes detailed plugin installation details that are more involved than simply installing the plugin in the back-end.
it doesnt even mention stuff in the tag trace.
I don’t think the plugin actually has any tags to process so that would explain why nothing shows in the tag trace.
there suppose to be a way to find if it is working or not
From the above text: After a user requests a page, JPCache will save the result-page in compressed format in the cache-directory. If you have set it all up correctly and your page content hasn’t changed, it should create a page in the cache (I presume this is the jpcache/cache directory). You can check that easily by looking at your FTP server.
Hope that helps.
TXP Builders – finely-crafted code, design and txp
Offline
#28 2010-04-08 14:37:26
- SuperMAG
- Member
- Registered: 2010-04-04
- Posts: 35
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
thanks, i saw the cache directory, there are alot of files in it. so i guess that means its caches.
Thanks alot mate.
Offline