Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-07-08 17:50:58

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Plugin cache directory

Looked around, didn’t find it, so I ask.

What’s a typical location for the Plugin cache directory path?

Something like /textpattern/plugins or /textpattern/cache ?

Offline

#2 2015-07-08 18:13:19

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Plugin cache directory

As it could be vulnerable to attacks, I would locate it before the site root.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2015-07-08 18:41:24

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Plugin cache directory

colak wrote #292899:

As it could be vulnerable to attacks, I would locate it before the site root.

This is for a local testing environment, I’m just looking for best practices.

Offline

#4 2015-07-08 18:51:38

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin cache directory

Not within the /textpattern directory, because that makes upgrading harder (if you use the tarbal/zipfile route).
Outside the document root, if your test environment is publicly accessible for the reason Colak gave.
Other than that, it doesn’t matter.

Offline

#5 2015-07-08 20:15:30

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Plugin cache directory

Ruud, I grabbed your plugins for an experiment of sorts.

I created a cross reference with Textpattern 4.5.7, added a Plugins and Themes folder in the root of an install.

Here is the Cross Reference, this is for my internal use, I’m just putting it up here so you can see what I’m trying to accomplish.

Basically, I’d like to grab the most prominent plugins and add them to a Plugins folder in the latest stable Textpattern code base. Then run it through a cross reference so I can see how these pluigins interact with the core, what functions they add, do they even work with my current PHP 5.6.9 setup?

zem_contact_reborn is missing from the cross reference because:

Parse error: syntax error, unexpected '', '' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /home/www/zendstudio/textpattern/plugins/zem_contact_reborn.php on line 172

I’ve got PHP reporting to me if a PHP script sneezes:

[07-Jul-2015 20:01:38 America/New_York] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/www/zendstudio/textpattern-alu/textpattern/setup/index.php on line 318
[07-Jul-2015 20:03:11 America/New_York] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/www/zendstudio/textpattern-alu/textpattern/setup/txpsql.php on line 31

Call it an educational exercise, who knows, it may serve useful. Let’s say you wanted to change an internal function, wouldn’t it be great to know what plugins use this function.

bert@jessie:/home/phpcrossref$

Offline

Board footer

Powered by FluxBB