I am confused about caching.
Posted: Sun Oct 04, 2020 8:45 pm
I have made (copy 'n' pase code)
function and place in the plugs folder. Which is working great. Basic it making sure all urls, phones numbers are clickable and removes all emty html tags from content been given and other stuff. I noiced that WYSIWYG editors don't aways make the links clickable especially if they been copying and pase content from else where. (removing empty tags coming soon)
In the html I have the header
{content assign='capturedcontent'}
in the main body
{pagecleaner clean=$capturedcontent}
I want to know what is the best way to cache this so its don't load every page load.
I did look at this page https://docs.cmsmadesimple.org/general- ... g-in-cmsms I am bit lost.
I guess if you did this {capture assign='mycontent'}{pagecleaner clean=$capturedcontent}{/capture} that wouldn't cache it.
Sorry I am not been clear. Baiscy I want the content to be cache made by my pagecleaner.
The code I am using is from
https://github.com/kwi-dk/UrlLinker
you welcome to look at my messy function
Please don't laugh at me. I don't know much about php programing.
Thanks guys.

In the html I have the header
{content assign='capturedcontent'}
in the main body
{pagecleaner clean=$capturedcontent}
I want to know what is the best way to cache this so its don't load every page load.
I did look at this page https://docs.cmsmadesimple.org/general- ... g-in-cmsms I am bit lost.
I guess if you did this {capture assign='mycontent'}{pagecleaner clean=$capturedcontent}{/capture} that wouldn't cache it.
Sorry I am not been clear. Baiscy I want the content to be cache made by my pagecleaner.
The code I am using is from
https://github.com/kwi-dk/UrlLinker
you welcome to look at my messy function

Thanks guys.