Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-17 19:45:58

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

tmp_plugin_paths_match (TXP advanced option)

What does the variable ‘tmp_plugin_paths_match’ mean?

In advanced options I am seeing the string “Pfad des Pluginzwischenspeichers” (path for the plug-in memory cache?).

Looking for the variable or the German string I can only find TXP language files which give me the variable name and the error message that the path may not be identical with the TXP tmp path..

The option field is empty and I would love to know what it is good for :)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#2 2008-02-17 20:36:21

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

Re: tmp_plugin_paths_match (TXP advanced option)

It’s not a variable, it’s a language string.

Offline

#3 2008-02-17 21:34:01

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: tmp_plugin_paths_match (TXP advanced option)

Ruud, I know that you are right :-)

BUT, in 4.0.6 there is an advanced option. Looking for the option text lead to the language string on Google.

My cryptic question is asking for the meaning of the specific advanced option.

In advanced options I am seeing the string “Pfad des Pluginzwischenspeichers” (path for the plug-in memory cache?).

More specific. Meaning of the string and purpose of the field. That’s what I am asking for.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#4 2008-02-17 22:01:26

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

Re: tmp_plugin_paths_match (TXP advanced option)

In English the popup help says:

Plugin cache directory path

This setting is mainly used for plugin developers. When specified, you can put the plugin source file (not compiled) in this directory and Textpattern will load it automatically, so you can easily edit the plugin and immediately see the effect it has, without having to install/activate the plugin. Beware though that by using this method, a broken plugin (which fails to compile) will also break Textpattern.

Offline

#5 2008-02-18 06:39:32

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: tmp_plugin_paths_match (TXP advanced option)

merz1 wrote:

What does the variable ‘tmp_plugin_paths_match’ mean?

Textpattern uses two directories on the server for special purposes:

  1. The ‘tmp’ directory, obviously used for temporary scratch files. For instance, the comment evaluator which tries to detect spammy comments, logs its activities to a file which is located in the ‘tmp’ directory.
  2. The ‘plugin cache’ directory. As the help text Ruud cited states, this is the place where Textpattern looks for plugins besides the ones which are loaded from the database. As of now, this is merely a convenience for plugin developers as they do no need to compile their plugin during debugging but simply place the raw PHP code into the cache folder, and Textpattern will run it.

When both ‘tmp’ and ‘plugin cache’ prefs are set to point to the same directory, problems arise, as Textpattern would try to run the contents of temporary log files as plugins, if they happen to have a .php file extension. Therefore, we issue a warning when the prefs are set that way.

Offline

#6 2008-02-18 14:53:21

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: tmp_plugin_paths_match (TXP advanced option)

@Ruud + Robert: Thanks!

[OT] This brings up another TXP help/documentation issue:

TXP Feature request:

If no help string for the specified language (i.e. language=de-de) is available:

Example:
http://rpc.textpattern.com/help/?item=plugin_cache_dir&language=de-de

Do not show the frustrating:

Sorry

The help doc you requested does not exist. If you got here via a link from the Textpattern interface, this means it has not yet been created.

Show the default English help text.

Reposted the issue here: RFE: Show the default English help text
Please vote for it.

Last edited by merz1 (2008-02-18 15:05:40)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

Board footer

Powered by FluxBB